package it.uniroma2.structure;

public class VariableFlow extends Variable{
	private String type;
	
	public VariableFlow(String name) {
		super(name);
	}
	
	public VariableFlow(String name, String type) {
		super(name);
		this.setType(type);
	}

	@Override
	public boolean equals(Object obj) {
		return (((Variable)obj).getName().equals(this.getName()));
	}

	@Override
	public String toBPEL() {
		return "<" + super.variableTag + " " + this.toString() + "/>\n";
	}
	
	@Override
	public String toString() {
		return super.toString() + " type=\"" + this.type + "\"";
	}

	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}

}
